import Send, { Proxy } from "@/common/http";


export function searchStock (code) {

    return Send({
        url: Proxy("/api/stock/search"),
        method: "get",
        data: {code}
    })
}



export function stockCreate (data) {
    return Send({
        url: Proxy("/api/stock/create"),
        method: "post",
        data
    })
}


export function getStock (stockCode) {

    return Send({
        url: Proxy("/api/stock/get"),
        method: "get",
        data: {stockCode}
    })
}
